<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '100%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '74%';
}
$style = '';
if ($column_left) {
    $style .= '; margin-left:1%';
}
if ($column_right) {
    $style .= '; margin-right:1%';
}
?>
<div class="content" style="width:<?php echo $width_content . $style; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul><br />
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="contact">
        <ul data-role="listview" data-divider-theme="a">
            <li data-role="list-divider"><?php echo $text_location; ?></li>
            <li>
                <div class="contact-info">
                    <ul data-role="listview" data-divider-theme="a" data-inset="true">
                        <li data-role="list-divider"><?php echo $text_address; ?></li>
                        <li><?php echo $store; ?></li>
                        <li><?php echo $address; ?></li>
                        <?php if ($telephone) { ?>
                            <li data-role="list-divider"><?php echo $text_telephone; ?></li>
                            <li><?php echo $telephone; ?></li>
                        <?php } ?>
                        <?php if ($fax) { ?>
                            <li data-role="list-divider"><?php echo $text_fax; ?></li>
                            <li><?php echo $fax; ?></li>
                        <?php } ?>
                    </ul>
                </div>
            </li>
        </ul><br />
        <div data-role="fieldcontain">
            <ul data-role="listview" data-divider-theme="a">
                <li data-role="list-divider"><?php echo $text_contact; ?></li>
                <li><input placeholder="<?php echo $entry_name; ?>" type="text" name="name" value="<?php echo $name; ?>" />
                <?php if ($error_name) { ?>
                    <div class="error"><?php echo $error_name; ?></div>
                <?php } ?></li>
                <li><input placeholder="<?php echo $entry_email; ?>" type="text" name="email" value="<?php echo $email; ?>" />
                <?php if ($error_email) { ?>
                    <div class="error"><?php echo $error_email; ?></div>
                <?php } ?></li>
                <li><textarea placeholder="<?php echo $entry_enquiry; ?>" name="enquiry" cols="40" rows="10" style="width: 99%;"><?php echo $enquiry; ?></textarea>
                <?php if ($error_enquiry) { ?>
                    <div class="error"><?php echo $error_enquiry; ?></div>
                <?php } ?></li>
                <li><label for="captcha"><?php echo $entry_captcha; ?></label>
                <input type="text" name="captcha" id="captcha" value="<?php echo $captcha; ?>" />
                <img src="index.php?route=information/contact/captcha" alt="" />
                <?php if ($error_captcha) { ?>
                    <div class="error"><?php echo $error_captcha; ?></div>
                <?php } ?></li>
            </ul>
        </div>
        <div class="buttons">
            <div class="right"><a data-role="button" data-theme="c" onclick="$('#contact').submit();" class="button"><span><?php echo $button_continue; ?></span></a></div>
        </div>
    </form>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>